package com.zelin.gulimall.ware.dao;

import com.zelin.gulimall.ware.entity.PurchaseDetailEntity;
import com.zelin.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 *
 * @author wangfeng
 * @email wangfeng@gmail.com
 * @date 2021-01-03 19:51:24
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStock(@Param("detailEntity") PurchaseDetailEntity detailEntity);

    Long selectStock(@Param("skuId") Long skuId);
}
